package com.yuyou.activity.util.util;

import java.util.Date;

import org.apache.commons.lang3.RandomStringUtils;

public class OrderIdUtil {
	
	private static final String OR_PREFIX="E";
	
	private static final String RE_PREFIX="RE";
	
	public static String getSPOrderIdID() {
		String ymd=DateUtil.format(new Date(), DateUtil.yyyyMMddHHmmss2);
		String ram=RandomStringUtils.randomNumeric(6);
		String res=OR_PREFIX+ymd+ram;
		return res;
	}
	
	public static String getSPRefundIdID() {
		String ymd=DateUtil.format(new Date(), DateUtil.yyyyMMddHHmmss2);
		String ram=RandomStringUtils.randomNumeric(6);
		String res=RE_PREFIX+ymd+ram;
		return res;
	}
	
	public static void main(String[] args) {
		System.out.println(getSPOrderIdID());
	}
	
}
